From d18e98388c102049e60a2bdcc9e489c4c7c647d3 Mon Sep 17 00:00:00 2001 From: Marek Kasik Date: Wed, 3 Dec 2008 10:17:45 +0000 Subject: [PATCH] =?utf8?q?Bug=20559914=20=E2=80=93=20eog=20doesn't=20apply?= =?utf8?q?=20paper=20setup.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-12-03 Marek Kasik Bug 559914 – eog doesn't apply paper setup. * gtk/gtkpapersize.c: Call the gtk_paper_size_new_from_ppd() with width and height in points. svn path=/trunk/; revision=21841 --- ChangeLog | 7 +++++++ gtk/gtkpapersize.c | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5250c77311..3f4046b5e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-12-03 Marek Kasik + + Bug 559914 – eog doesn't apply paper setup. + + * gtk/gtkpapersize.c: Call the gtk_paper_size_new_from_ppd() with width + and height in points. + 2008-12-02 Carlos Garcia Campos Bug 562878 – password save incorrectly set in gtkmountoperation diff --git a/gtk/gtkpapersize.c b/gtk/gtkpapersize.c index 5aa64b0f9d..a806ae8d95 100644 --- a/gtk/gtkpapersize.c +++ b/gtk/gtkpapersize.c @@ -852,8 +852,10 @@ gtk_paper_size_new_from_key_file (GKeyFile *key_file, display_name = g_strdup (name); if (ppd_name != NULL) - paper_size = gtk_paper_size_new_from_ppd (ppd_name, display_name, - width, height); + paper_size = gtk_paper_size_new_from_ppd (ppd_name, + display_name, + _gtk_print_convert_from_mm (width, GTK_UNIT_POINTS), + _gtk_print_convert_from_mm (height, GTK_UNIT_POINTS)); else if (name != NULL) paper_size = gtk_paper_size_new_custom (name, display_name, width, height, GTK_UNIT_MM); -- 2.30.2